<?php
/**
 * The template used for displaying page content in template-homepage.php
 *
 * @package qin
 */

?>
<!-- Slider main container -->
<div class="type-page has-post-thumbnail hentry" data-featured-image="">
	<div class="swiper-container col-full">
	    <!-- Additional required wrapper -->
	    <div class="swiper-wrapper">
				<!-- Slides -->
				<?php
				global $post;
				$args = array( 'numberposts' => 3, 'category_name' => 'news-accommodate' );
				$posts = get_posts( $args );
				foreach( $posts as $post ): setup_postdata($post);
				?>
				<div class="swiper-slide" style="<?php qin_homepage_content_styles(); ?>">
					<div class="swiper-content">
						<a class="swiper-content-title" href="<?php echo get_permalink( get_the_ID() ); ?>"><?php the_title(); ?></a>
						<div class="swiper-content-summary">
							<?php the_excerpt(); ?>
						</div>
					</div>
				</div>
				<?php endforeach; ?>
	    </div>
	    <!-- If we need pagination -->
	    <div class="swiper-pagination"></div>
	</div>
</div>
<!-- #post-## -->
